<?php
namespace Admin\Controller;

class AppraiseController extends CommonController {
    public function index(){
        $this->assign('title','评论管理');
        $data = M()->table('dota2_appraise')->join('dota2_user')->join('dota2_goods')->where('app_g_id = g_id and app_u_id = u_id')->select();
        $this->assign('appraiseslist',$data);
        $this->show();
    }

    public function delete(){
        $model = M('appraise');
        $model->delete($_POST['appid']);
    }

}
